<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let arr=[10,23,124,32,45,38,8080,998];
    console.log(arr);
    for(let i=0;i<arr.length;i++){
        if(arr[i]==8080){
            arr[i]=80;
        }
       console.log(arr[i]);
    }
    console.log('---------------------');
    arr[4]=101;
    console.log(arr[4]);
    console.log(arr.length);
    console.log('---------------------');
    arr[1000]=1001;
    for(let i=0;i<arr.length;i++){
        console.log(arr[i]);
    }
    delete arr[1000];
    console.log(arr);
</script>
</html>